package cloudgamesaumysql

import (
	"gorm.io/gorm"
	"time"
)

/*
  @author liubogeng
  @date   2024/12/11 15:29
*/

// CGGameAUConversionCodeApi 云游戏AU兑换码的接口表
type CGGameAUConversionCodeApi struct {
	ID            int64          `json:"id" gorm:"column:id;type:bigint;primaryKey;autoIncrement;comment:ID"`
	ActivityTitle string         `json:"activity_title" gorm:"column:activity_title;type:varchar(200);not null;default:'';comment:活动标题"`
	ApiAddr       string         `json:"api_addr" gorm:"column:api_addr;type:varchar(500);not null;default:'';comment:接口地址"`
	CreatedAt     time.Time      `json:"created_at" gorm:"column:created_at;type:datetime;comment:该条记录创建时间"`
	UpdatedAt     time.Time      `json:"updated_at" gorm:"column:updated_at;type:datetime;comment:该条记录修改时间"`
	DeletedAt     gorm.DeletedAt `json:"-" gorm:"index;type:datetime;comment:该条记录删除时间"`
}

func (CGGameAUConversionCodeApi) TableName() string {
	return "cg_game_au_conversion_code_api"
}
